package models

import (
	"time"
)

//好友申请
type UserInfo struct {
	Id               string    `gorm:"column:id",json:"id"`                   // id
	Nick_name        string    `gorm:"column:nick_name",json:"nick_name"`     // 昵称
	Gender           string    `gorm:"column:gender",json:"gender"`           // 性别
	Idiograph        string    `gorm:"column:idiograph",json:"idiograph"`     // 个性签名
	Telephone        string    `gorm:"column:telephone",json:"telephone"`     // 手机号
	Province_id      string    `gorm:"column:province_id",json:"province_id"` // 省id
	City_id          string    `gorm:"column:city_id",json:"city_id"`         // 市id
	District_id      string    `gorm:"column:district_id",json:"district_id"`
	Qq_openid        string    `gorm:"column:qq_openid",json:"qq_openid"`
	Wx_openid        string    `gorm:"column:wx_openid",json:"wx_openid"`
	Age              string    `gorm:"column:age",json:"age"`
	Headshot_url     string    `gorm:"column:headshot_url",json:"headshot_url"`
	Password         string    `gorm:"column:password",json:"password"`
	Wallet_id        string    `gorm:"column:wallet_id",json:"wallet_id"`
	Account          string    `gorm:"column:account",json:"account"`
	Experience_point string    `gorm:"column:experience_point",json:"experience_point"`
	Stu_info_id      string    `gorm:"column:stu_info_id",json:"stu_info_id"`
	Indi_auth_id     string    `gorm:"column:indi_auth_id",json:"indi_auth_id"`
	CreateTime       time.Time `gorm:"not_null" json:"create_time"`
	UpdateTime       time.Time `gorm:"not_null" json:"update_time"`
	DeleteTime       time.Time `json:"delete_time"`
}

// 设置表名为 user_info
func (this *UserInfo) TableName() string {
	return "user_info"
}
